<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加/修改游戏区</title>
<%@ include file="/view/common/tags.jsp"%>
</head>
<body>
	<div class="well well_p" >
		<sk:form method="post" cssClass="form-horizontal"  id="saveAndUpdateFrom" target="_parent"  action="/versionControl/save">
			<div class="form-group">
				<label class="col-xs-2 text-right">APP名称:</label>
	           	<div class="col-xs-4 ">
		           	<c:if test="${flag==0}">
		            	<sk:select cssClass="form-control select" id="gameId"  name="gameId" onchange="checkVersion()"   value="">
                                       <option value="">请选择</option>
                                       <sk:options options="${gameNameList}"></sk:options> 
                                  </sk:select>
		            </c:if>
		            <c:if test="${flag==1}">
	            		<sk:select cssClass="form-control select" name="gameIds" id="gameId" value="${tlzsVersionControl.gameId}" >
		                	<option value="">请选择</option>
							<sk:options options="${gameNameList}"></sk:options> 
		            	</sk:select>
		            	<input type="hidden" class="input"  name="gameId" value="${tlzsVersionControl.gameId}" >
		            </c:if>
	            </div>
            </div>
			<div class="form-group">
				<label class="col-xs-2 text-right">渠道名称:</label>
	           	<div class="col-xs-4 ">
		           	<c:if test="${flag==1}">
		           		<sk:select cssClass="form-control select" name="sourceCodes" id="sourceCode" value="${tlzsVersionControl.sourceCode}" >
		                	<option value="">请选择</option>
							<sk:options  options="${sourceList}" ></sk:options>
		            	</sk:select>
		            	<input type="hidden" class="input"  name="sourceCode" value="${tlzsVersionControl.sourceCode}" >
		            </c:if>
		            <c:if test="${flag==0}">
		           		<sk:select cssClass="form-control select" name="sourceCode" id="sourceCode" value="${tlzsVersionControl.sourceCode}" onchange="checkVersion()">
		                	<option value="">请选择</option>
							<sk:options  options="${sourceList}" ></sk:options>
		            	</sk:select>
		            </c:if>
	            </div>
            </div>
            <div class="form-group" >
				<label class="col-xs-2 text-right">下载地址:</label>
				<div class="col-xs-9">
					<input type="text" class="form-control" name="downloadUrl" id="downloadUrl" value="${tlzsVersionControl.downloadUrl}"  placeholder="输入下载地址">
				</div>
			</div>
			<div class="form-group" >
				<label class="col-xs-2 text-right">版本号:</label>
				<div class="col-xs-4">
					<input type="text" class="form-control" name="appVersion" id="appVersion" value="${tlzsVersionControl.appVersion}"  placeholder="输入app版本号" >
				</div>
				<span class="exp_box col-xs-6" >版本号格式：app版本v1.0.0则输入100。</span>
			</div>
			<div class="form-group" >
				<label class="col-xs-2 text-right">版本说明:</label>
				<div class="col-xs-7">
					<textarea id="versionRemark" name="versionRemark" style="width:500px;height:100px;border:#ccc solid 1px;text-indent:3px;padding-top:3px;"/>${tlzsVersionControl.versionRemark}</textarea>
				</div>
			</div>
			<input type="hidden" id="rowId" name="rowId" value="${tlzsVersionControl.rowId}">
			<input type="hidden" id="flag"  value="${flag}">
			<input type="hidden" id="isReCommit" value="0">
		</sk:form>	
	</div>
</body>
<%@ include file="/view/common/footer.jsp"%>
<script type="text/javascript" src="${sysManagerV1}/view/js/version/versionControl_add.js"></script>
</html>